package chapter03;
class gauss{
    private String name;
    private int age;
    public gauss (){}
    public gauss (String n){
        name=n;
    }
    public gauss (String n,int a){
        name=n;
        age=a;
    }
    public void read(){
        System.out.println("我是:"+name+",年龄:"+age);
    }
}
public class Example07 {
    public static void main(String[] args) {
        gauss ga1=new gauss("张三");
        gauss ga2=new gauss("张三",18);
        ga1.read();
        ga2.read();
    }
}
